package com.chatplus.application.web;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@EnableConfigurationProperties
@Configuration
public class VerificationConfig {
    public static final String PREFIX_VERIFICATION_CONFIG = "chatplus.verification";
    public static final String PREFIX_SMS_CAPTCHA_CONFIG = PREFIX_VERIFICATION_CONFIG + ".captcha.sms";
    @Bean
    @ConfigurationProperties(PREFIX_SMS_CAPTCHA_CONFIG)
    public SmsCaptchaProperties smsCaptchaProperties() {
        return new SmsCaptchaProperties();
    }

    public static class SmsCaptchaProperties {
        private Boolean enabledMock;
        /**
         * 签名名称
         */
        private String signName = "岸上吧";
        /**
         * 发送验证码短信模板Id
         */
        private Long templateId = 69410253513950118L;

        public Boolean getEnabledMock() {
            return enabledMock;
        }

        public void setEnabledMock(Boolean enabledMock) {
            this.enabledMock = enabledMock;
        }

        public String getSignName() {
            return signName;
        }

        public void setSignName(String signName) {
            this.signName = signName;
        }

        public Long getTemplateId() {
            return templateId;
        }

        public void setTemplateId(Long templateId) {
            this.templateId = templateId;
        }
    }

}
